package com.backend.modules.system.service;

import com.backend.modules.system.dto.DepartmentDTO;
import com.backend.modules.system.dto.DepartmentQueryDTO;
import com.backend.modules.system.entity.SysDepartment;

import java.util.Collection;
import java.util.List;

public interface SysDepartmentService {
    
    void create(DepartmentDTO dto);
    
    void update(Long id, DepartmentDTO dto);
    
    void delete(Long id);
    
    SysDepartment getById(Long id);
    
    List<SysDepartment> getTree();

    List<SysDepartment> list(DepartmentQueryDTO query);

    List<SysDepartment> getTree(DepartmentQueryDTO query);

    /**
     * 根据ID列表查询部门
     */
    List<SysDepartment> listByIds(Collection<Long> ids);
} 